﻿<%@ Page Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true"
    CodeFile="AddBanner.aspx.cs" Inherits="back_AddBanner" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('[data-rel="chosen"],[rel="chosen"]').chosen();
            $("input:checkbox, input:radio, input:file").not('[data-no-uniform="true"],#uniform-is-ajax').uniform();
        });
    </script>
    <div class="page-header">
        <h1>
            Add Banner</h1>
    </div>
    <div id="divMessage" runat="server">
        
    </div>
    <div class="control-group">
        <label class="control-label">
            Name</label>
        <div class="controls">
            <asp:TextBox ID="txtBannerName" runat="server" Width="250px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPageTitle" runat="server" ErrorMessage="Please enter Banner Name"
                ControlToValidate="txtBannerName" Display="Dynamic"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Image</label>
        <div class="controls">
            <asp:FileUpload ID="uplImage" runat="server" class="input-file uniform_on" />
            <div id="divimage" runat="server" visible="false">
                <a id="aviewimage" runat="server" target="_blank">View Image</a></div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Image Type</label>
        <div class="controls">
            <asp:DropDownList ID="ddlimgloction" runat="server" data-rel="chosen">
                <asp:ListItem Value="0">Select Type</asp:ListItem>
                <asp:ListItem Value="1">Main Banner</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please select Image Type."
                ControlToValidate="ddlimgloction" Display="Dynamic" InitialValue="0"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Browse Link</label>
        <div class="controls">
            <asp:TextBox ID="txtBannerLink" runat="server" CssClass="input-xlarge"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Description</label>
        <div class="controls">
            <asp:TextBox ID="txtDescription" TextMode="MultiLine" Rows="5" Columns="5" runat="server"></asp:TextBox>
        </div>
    </div>
    <asp:HiddenField ID="hfimagename" runat="server" />
    <div class="form-actions">
        <asp:Button ID="btnSubmit" runat="server" CssClass="btn btn-primary" Text="Submit"
            OnClick="btnSubmit_Click" />
    </div>
</asp:Content>
